package com.df.bpm.service.impl;

import com.df.bpm.dto.BusinessOutputDTO;
import com.df.bpm.mapper.BusinessOutputDTOMapper;
import com.df.common.utils.MyQueryWrapper4Like;
import com.df.common.service.impl.BaseServiceImpl;
import com.df.bpm.service.BusinessOutputDTOService;

import com.df.common.utils.CommonUtils;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class BusinessOutputDTOServiceImpl extends BaseServiceImpl<BusinessOutputDTOMapper,BusinessOutputDTO> implements BusinessOutputDTOService {
	public final BusinessOutputDTOMapper businessOutputDTOMapper;
	public List<BusinessOutputDTO> getList4Like(BusinessOutputDTO temp) {
		if(CommonUtils.varIsBlank(temp)){
			return null;
		}
		MyQueryWrapper4Like<BusinessOutputDTO> wrapper=new MyQueryWrapper4Like<>(temp);
		return businessOutputDTOMapper.selectList(wrapper.stringLike(temp).eq("businessInformationIndex", temp.getBusinessInformationIndex()));
	}
}